package com.xiaobu.shop.domain.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Collection;
import java.util.Date;

import java.io.Serializable;

import com.xiaobu.shop.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaobu
 * @since 2023-06-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("shop_user")
public class ShopUser extends BaseEntity implements Serializable  {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 账号（唯一）
     */
    @TableField("`usercode`")
    private String usercode;

    /**
     * 用户名称
     */
    private String username;

    /**
     * 密码
     */
    @TableField("`password`")
    private String password;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 手机
     */
    private String phone;

    /*
    性别
     */
    private Boolean gender;
    /**
     * 生日
     */
    private Date birthday;
    /**
     * 签名
     */
    private String signature;
    /**
     * 头像
     */
    private String avatar;
    /**
     * 盐
     */
    private String salt;

    /**
     * 最后登录时间
     */
    private Date lastLogin;

}
